﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WorldSimulatorWPF" x:Class="WorldSimulatorWPF.MainWindow"
        mc:Ignorable="d" Loaded="Window_Loaded" Height="768" Width="1024" Title="WorldSimulator - WPF" WindowStartupLocation="CenterScreen" >

	<Window.Resources>
		<Style TargetType="{x:Type Button}" x:Key="ToolbarButtonStyle">
			<Setter Property="Width" Value="30" />
			<Setter Property="Height" Value="30" />
			<Setter Property="Margin" Value="1" />
			<Setter Property="Padding" Value="5" />
			<Setter Property="DockPanel.Dock" Value="Left" />
		</Style>

	</Window.Resources>

    <Window.DataContext>
        <Binding Path="Main" Source="{StaticResource ViewModelLocator}"/>
    </Window.DataContext>

	<DockPanel x:Name="LayoutRoot">
		
		<!-- TOOLBAR -->
		<DockPanel DockPanel.Dock="Top">
			<Button Command="{Binding StartCommand}" Style="{StaticResource ToolbarButtonStyle}"><Path Data="M0,0 L100,50 0,100 z" Fill="Green" Stroke="Black" Stretch="Uniform"/></Button>
			<Button Command="{Binding StopCommand}" Style="{StaticResource ToolbarButtonStyle}"><Path Data="M0.5,0.5 L4.25,0.5 4.25,19.5 0.5,19.5 z M10.25,0.5 L14,0.5 14,19.5 10.25,19.5 z" Fill="Green" Stretch="Uniform" Stroke="Black" /></Button>

			<TextBlock Text="{Binding DebugOutput}" DockPanel.Dock="Right" />
		</DockPanel>

		<!-- RENDER WINDOW -->
        <local:RenderWindow x:Name="RenderWindow" />

    </DockPanel>
</Window>
